/*!
 @header LcbImageView.h
 @abstract 网络图片类
 @author 刘成彬
 @version 1.0 2016/05/23 Creation
 */
#import <UIKit/UIkit.h>

typedef void(^lcbImageViewCompletionBlock)(UIImage *image, NSError *error, NSURL *imageURL);
typedef void(^lcbImageViewDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize);

/*!
 @category
 @abstract UIImageView扩展类。
 */
@interface UIImageView (LcbImageView)

/*!
 @method
 @abstract 根据url展示图片
 @discussion @c[self lcb_imageWithUrlStr:@""];
 @param urlStr 图片网络地址
 */
-(void)lcb_imageWithUrlStr:(NSString *)urlStr;

/*!
 @method
 @abstract 根据url展示图片
 @discussion @c[self lcb_imageWithUrlStr:@"" placeholder:@""];
 @param urlStr 图片网络地址
 @param placeholder 默认图片
 */
-(void)lcb_imageWithUrlStr:(NSString *)urlStr placeholder:(UIImage *)placeholder;

/*!
 @method
 @abstract 根据url展示图片
 @discussion [self lcb_imageWithUrlStr:@"" size:@"" progressBlock：@"" completedBlock：@""];
 @param urlStr 图片网络地址
 @param placeholder 默认图片
 @param progressBlock 进度回调
 @param completedBlock 完成回调
 */
-(void)lcb_imageWithUrlStr:(NSString *)urlStr placeholder:(UIImage *)placeholder progressBlock:(lcbImageViewDownloaderProgressBlock)progressBlock completedBlock:(lcbImageViewCompletionBlock)completedBlock;
/*!
 @method
 @abstract 根据url展示图片
 @discussion [self lcb_imageWithUrlStr:@"" placeholderImage:@"" completedBlock：@""];
 @param urlStr 图片网络地址
 @param placeholder 默认图片
 @param completedBlock 完成回调
 */
-(void)lcb_imageWithUrlStr:(NSString *)urlStr placeholderImage:(UIImage *)placeholder completedBlock:(lcbImageViewCompletionBlock)completedBlock;
@end
